/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bank.repository;

import java.util.List;

import iaas.repository.BaseRepository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.bank.entity.Branch;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface BranchDao extends BaseRepository<Branch, Long> ,JpaSpecificationExecutor<Branch>{

	/**
	 * 查询银行网点
	 * @param status
	 * @return
	 */
	public List<Branch> findByCorpIdAndStatus(Long corpId,Integer status);
	
	//模糊查询网点信息
	public List<Branch> findByCorpIdAndStatusAndAddressLike(Long corpId,Integer status,String address);
}
